package hac

import (
	"GLibHac/ns"
	"fmt"
)

type TitleInfo struct {
	Name      string
	Language  ns.Language
	Publisher string
	Icon      []byte
}

func (t *TitleInfo) String() string {
	return fmt.Sprintf("TitleInfo{Name:\"%s\", Language:\"%s\", Publisher:\"%s\", Icon: %p}", t.Name, t.Language, t.Publisher, t.Icon)
}

type GameInformation struct {
	TitleInfos []*TitleInfo
	ns.ContentMetaType
	TitleName                 string
	TitleVersion              string
	MetaTitleId               string
	Version                   string
	TitleId                   string
	MinimumSystemVersion      string
	MinimumApplicationVersion string
}

func (h *GameInformation) String() string {
	return fmt.Sprintf(
		"GameInformation{TitleInfos: %v, ContentMetaType: \"%s\", TitleName: \"%s\", Version: \"%s\", TitleId: \"%s\", MinimumSystemVersion: \"%s\", MinimumApplicationVersion: \"%s\"}",
		h.TitleInfos, h.ContentMetaType, h.TitleName, h.Version, h.TitleId, h.MinimumSystemVersion, h.MinimumApplicationVersion,
	)
}
